#pragma once
#include <iostream>
#include <vector>
using namespace std;

#include "Tire.h"//底盘包括轮胎类

// 底盘类
class Underpan
{
public:
    string id;         // 底盘编号 dp打头的8位数字+字母
    string model;      // 底盘型号SCOUT MINI
    int wheelbase;        // 轴距 451mm
    int track_width;      // 轮距 490mm
    int ground_clearance; // 最小离地间隙115mm
    int turning_radius;   // 最小转弯半径0m
    string drive_form; // 驱动形式
    int max_range;        // 最大行程
    vector<Tire> tires;  // 轮胎

    // 默认构造函数
    Underpan()
        : id("dp00000000"), model("SCOUT MINI"), wheelbase(451),
          track_width(490), ground_clearance(115), turning_radius(0),
          drive_form("四轮四驱"), max_range(10) {}

    // 构造函数
    Underpan(string id, string model, int wheelbase, int track_width,
             int ground_clearance, int turning_radius,  string drive_form,
             int max_range,  vector<Tire> tires)
        : id(id), model(model), wheelbase(wheelbase), track_width(track_width),
          ground_clearance(ground_clearance), turning_radius(turning_radius),
          drive_form(drive_form), max_range(max_range), tires(tires) {}
};